package com.nbot.client.command;

import com.nbot.common.AbstractInterpreter;
import com.nbot.common.command.BaseCommand;
import com.nbot.common.command.s2b.SelectBackCommand;

/**
 * 查询返回指令解释器
 */
public class SelectBackCommandInterpreter extends AbstractInterpreter {


    public SelectBackCommandInterpreter(BaseCommand baseCommand) {
        super(baseCommand);
    }

    /**
     * bot接收到SelectBackCommand指令后，执行一下操作
     */
    @Override
    public void execute() {
        SelectBackCommand selectBackCommand = (SelectBackCommand) this.getBaseCommand();
        System.err.println("opc" + selectBackCommand.getOpcKey() + "的查询结果为:" + selectBackCommand.getResult());

    }
}
